package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.victor.entity.JQActivity;
import com.victor.entity.Jingqulist;
import com.victor.entity.YYactivityOrder;

@Mapper
public interface ActivityAppDao {

	/**
	 * 获取景区演艺活动列表
	 * 
	 * @param jqAcOneID
	 * @param jqAcTwoID
	 * @param priceLifting
	 * @return
	 */
	List<JQActivity> getYYactivity(@Param("jqAcOneID") String jqAcOneID, @Param("jqAcTwoID") String jqAcTwoID,
			@Param("priceLifting") String priceLifting);

	/**
	 * 获取景区演艺活动详情
	 * 
	 * @param jqacid
	 * @return
	 */
	JQActivity getYYactivityXQ(@Param("jqacid") String jqacid);

	/**
	 * 提交演艺活动订单
	 * 
	 * @param yyactivityOrder
	 * @return
	 */
	@Insert({
			"insert into yy_activityorder (jqacid,userid,peoplenumber,time,money,phone,orderstate) values (#{jqacid},#{userid},#{peoplenumber},#{time},#{money},#{phone},#{orderstate})" })
	int submitYYactivityOrder(YYactivityOrder yyactivityOrder);

	/**
	 * 查询团购列表 ifgroupbuy==1
	 * 
	 * @param jqclassid
	 * @return
	 */
	List<Jingqulist> getGroupbuyjqlist(@Param("jqclassid") String jqclassid);

}
